% Input Matrix
function [FAR,FRR,Axis] = GenFARFRR(Sheep,Wolves,Granularity);

MinScore = min([Sheep;Wolves]);
MaxScore = max([Sheep;Wolves]);

SheepTotal = length(Sheep);
WolvesTotal = length(Wolves);

Step = (MaxScore - MinScore) / Granularity;

x = 1;
for Threshold = MinScore : Step: MaxScore
    FRR(x) = ((length(find(Sheep < Threshold)))/SheepTotal) * 100;
    FAR(x) = ((length(find(Wolves > Threshold)))/WolvesTotal) * 100;
    Axis(x) = Threshold;
    x = x + 1;
end
